package com.itheima.service.impl;

import com.itheima.dao.AccountDao;
import com.itheima.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.inject.Inject;
import javax.inject.Named;

@Service("accountService")
public class AccountServiceImpl implements AccountService {
//    @Autowired
//    @Qualifier("accountOne")
//    @Resource(name = "accountOne",type = AccountDao.class)
    @Inject
//    @Named("accountTwo")
    private AccountDao accountDao;

    @Override
    public void save() {
        accountDao.save();
    }
}
